package org.hiucung.hlsdownloader

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.material3.MaterialTheme

import org.hiucung.hlsdownloader.ui.screens.VideoPlayerScreen


/**
 * @title: FullScreenPlayerActivity
 * @projectName HLS Downloader
 * @description: 全屏视频播放页面
 * @author Kicc
 * @date 2025/8/28 1:20
 */
class FullScreenPlayerActivity : ComponentActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {

        super.onCreate(savedInstanceState)

        // 获取传递的视频路径
        val videoPath = intent.getStringExtra("VIDEO_PATH") ?: return
        setContent {
            MaterialTheme {
                VideoPlayerScreen(videoPath = videoPath)
            }
        }
    }
}